package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCdOrderMainMapper;
import com.ruoyi.system.domain.SysCdOrderMain;
import com.ruoyi.system.service.ISysCdOrderMainService;

/**
 * SysCdOrderMainService业务层处理
 * 
 * @author SYF
 * @date 2025-05-09
 */
@Service
public class SysCdOrderMainServiceImpl implements ISysCdOrderMainService 
{
    @Autowired
    private SysCdOrderMainMapper sysCdOrderMainMapper;

    /**
     * 查询SysCdOrderMain
     * 
     * @param fdate SysCdOrderMain主键
     * @return SysCdOrderMain
     */
    @Override
    public SysCdOrderMain selectSysCdOrderMainByFdate(String fdate)
    {
        return sysCdOrderMainMapper.selectSysCdOrderMainByFdate(fdate);
    }

    /**
     * 查询SysCdOrderMain列表
     * 
     * @param sysCdOrderMain SysCdOrderMain
     * @return SysCdOrderMain
     */
    @Override
    public List<SysCdOrderMain> selectSysCdOrderMainList(SysCdOrderMain sysCdOrderMain)
    {
        return sysCdOrderMainMapper.selectSysCdOrderMainList(sysCdOrderMain);
    }

    /**
     * 新增SysCdOrderMain
     * 
     * @param sysCdOrderMain SysCdOrderMain
     * @return 结果
     */
    @Override
    public int insertSysCdOrderMain(SysCdOrderMain sysCdOrderMain)
    {
        return sysCdOrderMainMapper.insertSysCdOrderMain(sysCdOrderMain);
    }

    /**
     * 修改SysCdOrderMain
     * 
     * @param sysCdOrderMain SysCdOrderMain
     * @return 结果
     */
    @Override
    public int updateSysCdOrderMain(SysCdOrderMain sysCdOrderMain)
    {
        return sysCdOrderMainMapper.updateSysCdOrderMain(sysCdOrderMain);
    }

    /**
     * 批量删除SysCdOrderMain
     * 
     * @param fdates 需要删除的SysCdOrderMain主键
     * @return 结果
     */
    @Override
    public int deleteSysCdOrderMainByFdates(String[] fdates)
    {
        return sysCdOrderMainMapper.deleteSysCdOrderMainByFdates(fdates);
    }

    /**
     * 删除SysCdOrderMain信息
     * 
     * @param fdate SysCdOrderMain主键
     * @return 结果
     */
    @Override
    public int deleteSysCdOrderMainByFdate(String fdate)
    {
        return sysCdOrderMainMapper.deleteSysCdOrderMainByFdate(fdate);
    }
}
